const { override, addWebpackAlias } = require('customize-cra');
const path = require('path');

module.exports = override(
  // ASD 配置路径别名之后需要重新启动项目
  addWebpackAlias({
    '@': path.resolve(__dirname, 'src'),
    '@components': path.resolve(__dirname, 'src/components'),
    '@hooks': path.resolve(__dirname, 'src/hooks'),
    '@utils': path.resolve(__dirname, 'src/utils'),
    '@api': path.resolve(__dirname, 'src/api'),
  })
);